package com.web;

import com.pojo.CePing;
import com.service.CePingService;
import com.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CePingController {
    @Autowired
    private CePingService cePingService;

    @RequestMapping("/ceping")
    public ResultEntity ceping(@RequestBody CePing cePing) {
        return ResultEntity.ok(cePingService.getCePings(cePing));
    }
}
